<%@ page language="java" contentType="text/html; charset=gb2312" pageEncoding="gb2312"%>
<%@page import="java.util.*,Excel.*,java.io.*,org.apache.poi.hssf.usermodel.*"%>
<%
response.reset(); 
response.setContentType("application/vnd.ms-excel"); 
request.setCharacterEncoding("gb2312");
String workSheetName = "pro_info.xls";
response.setHeader("Content-disposition", "attachment; filename="+workSheetName);
CreatExcel  we=new CreatExcel();
 
OutputStream output = response.getOutputStream();
we.getExcel("111.xls",output);
output.close();
/*HSSFWorkbook wb=new HSSFWorkbook();
	  HSSFSheet sheet=wb.createSheet(workSheetName);
	  HSSFRow row=sheet.createRow((short)0);
	  HSSFCell cell=row.createCell((short)0);
	  cell.setCellValue(1);
	  row.createCell((short)1).setCellValue(2);
	  row.createCell((short)2).setCellValue(3);
	  row.createCell((short)3).setCellValue(4);
	  row.createCell((short)4).setCellValue(5);
	  row.createCell((short)5).setCellValue(5);
	  OutputStream   output=response.getOutputStream();
	    output.flush(); 
	       wb.write(response.getOutputStream());
	         output.close();
*/
%>